package com.epam.training.service.penalty;

import java.util.List;

import org.springframework.data.domain.Page;

import com.epam.training.domain.Penalty;

public interface PenaltyService {
	List<Penalty> getAllPenalty();

	Page<Penalty> getAllPenalty(Integer pageNumber);
	
	void save(Penalty penalty);
	
	Penalty getById(Integer id);
	
	void delete(Integer id);
	
	void update(Penalty penalty, Integer id);
}
